From: Rob Church Date: Mon, 18 Dec 2006 18:17:37 +0000 (+0000) Subject: * Don't show "you can view and copy the source of this page" message for pages which... X-Git-Tag: 1.31.0-rc.0~54852 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=55681433189c753cfca1f75c8f09433c92164d4e;p=lhc%2Fweb%2Fwiklou.git * Don't show "you can view and copy the source of this page" message for pages which don't exist (and therefore have no source) --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index f24d47c97e..7fe83fd42a 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -342,6 +342,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN (plus optional ISBN-13 prefix) with no immediately following alphanumeric character, disallow multiple consecutive internal redirects * (bug 2785) Accept optional colon prefix in links when formatting comments +* Don't show "you can view and copy the source of this page" message for + pages which don't exist == Languages updated == diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 57f0b67472..f5a0eb3cf7 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -895,6 +895,7 @@ class OutputPage { } if( is_string( $source ) ) { + $this->addWikiText( 'viewsourcetext' ); if( $source === '' ) { global $wgTitle; if ( $wgTitle->getNamespace() == NS_MEDIAWIKI ) { diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 71eca68303..6295229a20 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -767,9 +767,8 @@ Function: $1
Query: $2', 'viewsource' => 'View source', 'viewsourcefor' => 'for $1', -'protectedtext' => 'This page has been locked to prevent editing. - -You can view and copy the source of this page:', +'protectedtext' => 'This page has been locked to prevent editing.', +'viewsourcetext' => 'You can view and copy the source of this page:', 'protectedinterface' => 'This page provides interface text for the software, and is locked to prevent abuse.', 'editinginterface' => "'''Warning:''' You are editing a page which is used to provide interface text for the software. Changes to this page will affect the appearance of the user interface for other users.", 'sqlhidden' => '(SQL query hidden)',